<?php
/**
 * @package panel
 * @subpackage panel.exceptions
 */
/**
 * Action is not supported to given entity
 * @author Dmitry Bakaleinik (code)
 */
class panel__e__unsupported_entity_given
	extends panel__e__validation {

	protected $message   = "Unsupported entity '%s' given";

	public function __construct($_entity_ = NULL) {

		$this->message = sprintf(
			$this->message,
			var_export($_entity_, true)
		);

		if( panel__settings__environment::isVerbose() ) {
			$this->message = $this->__toString(); }

	}	# Function

}	# Class

/* EOF */